// pages/demo3/demo3.js
Page({
	data: {
		value:null
	},
	getNetValue:function(e){
		const _this = this;
		const http = require("../../utils/http.js");
		http.post("http://127.0.0.1/Spring_MVC_Day2/testAjax", {
			id: "xxx",
			name: "xx",
			amout: 3.3,
			createtime: "2020-1-1"
		}, function (o) {
			console.log(o)
			_this.setData({
				value: o.data
			})
		}, function (e) {
			console.log(e)
		});
	}
})